import App from "@/view/App";
import Fast from "@/view/Fast";
import Home from "@/view/Home";
import Login from "@/view/Login";
import Mine from "@/view/Mine";
import Practice from "@/view/Practice";
import Select from "@/view/Select";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

const router = (
  <Router>
    <Routes>
      <Route path="/login" element={<Login />}></Route>
      <Route path="/" element={<App />}>
        <Route path="home" element={<Home />}></Route>
        <Route path="fast" element={<Fast />}></Route>
        <Route path="mine" element={<Mine />}></Route>
        <Route path="select" element={<Select />}></Route>
        <Route path="practice" element={<Practice />}></Route>
      </Route>
    </Routes>
  </Router>
);

export default router;
